import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import BaseUrl from './http/Base'

Vue.use(ElementUI);

// 声明全局变量 保存上传文件的前缀
Vue.prototype.UPLOADURL = BaseUrl.UPLOADURL

Vue.prototype.$bus = new Vue()

// 设置全局的安全秘钥, 才可以访问高德地图web接口
window._AMapSecurityConfig = {
  securityJsCode:"bd823319e6e29a276fa469821a3ce469",
  // securityJsCode: '0b7fff62bb4d6f79bae15c1a1483e327',

}

Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App),
  // beforeCreate(){
  //   Vue.prototype.$bus = this
  // }
}).$mount('#app')
